/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bean;

/**
 *
 * @author irw
 */
public class Category extends BaseBean {
    private int recId;
    private String label;
    private String description;
    private boolean selected;

    public Category(){}

    public Category(int recId, String label, String description){
        this.recId = recId;
        this.label = label;
        this.description = description;
    }
    /**
     * @return the recId
     */
    public int getRecId() {
        return recId;
    }

    /**
     * @param recId the recId to set
     */
    public void setRecId(int recId) {
        this.recId = recId;
    }

    /**
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
    protected int getPrimaryKey() {
        return getRecId();
    }

    /**
     * @return the selected
     */
    public boolean isSelected() {
        return selected;
    }

    /**
     * @param selected the selected to set
     */
    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    
    
}
